package com.link.base.base.invloc.dao.mybatis.mapper;

import com.link.base.base.invloc.model.InvProd;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceException;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: unknown
 * created: unknown
 * comments: 产品库存
 */
public interface InvProdMapper extends BasicMapper<InvProd> {

    /**按照id查询产品库存
     * @param record
     * @return ArrayList InvProdLoc
     * @throws BasicServiceException
     * @throws Exception
     */
    public ArrayList<InvProd> queryInvProdByInvId(InvProd record) throws BasicServiceException, Exception;

    /**
     * 将产品各批次的数量合计的分页查询
     *
     * @author NingLanhao
     * @date 2019-01-15 10:57
     * @param invProd 查询实体
     * @return java.util.List 产品数组
     * @throws Exception
     */
    List<InvProd> queryByExampleWithoutBatchPage(InvProd invProd) throws Exception;
}
